package test4;

public class WeixinPay extends Payment{
    private String number;

    public WeixinPay(double amount, String number) {
        super(amount);
        this.number = number;
    }

    @Override
    public void processPayment() {
        System.out.println("WeixinPay payment processed.");
    }

    public String getPaymentDetails() {
        return "WeixinPay, Account Number: " + number + ", Amount: $" + amount;
    }
}
